<!DOCTYPE html><html><head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title>查看拍品</title>
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/common.css" type="text/css" rel="stylesheet">
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/renzheng.css" type="text/css" rel="stylesheet">
	    <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>   
	
</head>
<body>
<div id="contentbox"><input type="hidden" id="user_id" value='<?php echo $output["user"]["user_id"]?>'>
    <div class="verifyMain">
        <div class="verifyBox">		<script>		function zcgl_xl(){			var is_show=document.getElementById("zcgl").style.display;			if(is_show=="block"){				document.getElementById("zcgl").style.display="none";			}			else{				document.getElementById("zcgl").style.display="block";			}					}		function ppgl_xl(){			var is_show=document.getElementById("ppgl").style.display;			if(is_show=="block"){				document.getElementById("ppgl").style.display="none";			}			else{				document.getElementById("ppgl").style.display="block";			}					}		</script>
            <div style="width:100%;height:auto;margin:0 auto;">
                <div class="title" style="float:left;width:50%;position:relative;background:green;text-align:center;"
                     onclick="zcgl_xl();">专场管理
                    <div
                        style="position:absolute;left:0px;top:20px;background:pink;width:100%;z-index:999;display:none;"
                        id="zcgl">
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang&curpage=1">专场申请</a></div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_zt&curpage=1">查看申请</a></div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_jl&curpage=1">参加记录</a></div>
                    </div>
                </div>
                <div class="title" style="float:right;width:50%;text-align:center;position:relative;background:green;"
                     onclick="ppgl_xl();">拍品管理
                    <div
                        style="position:absolute;left:0px;top:20px;background:pink;width:100%;z-index:999;display:none;"
                        id="ppgl">
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_paipin&curpage=1">拍品上传</a>
                        </div>
                        <div class="title"><a href="index.php?act=renzheng&op=zhuanchang_paipin_ck&curpage=1">查看拍品</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script>            function xyleft(id, num) {
                var xy_c_str = document.getElementById("xy_c_" + id).style.left;
                var px_sy = xy_c_str.indexOf("px");
                var px_int = xy_c_str.substring(0, px_sy);
                px_int = parseInt(px_int);
                var px_abs = Math.abs(px_int);
                if (px_abs < (num - 1) * 300) {
                    document.getElementById("xy_c_" + id).style.left = px_int - 300 + "px";
                }
            }
            function xyright(id, num) {
                var xy_c_str = document.getElementById("xy_c_" + id).style.left;
                var px_sy = xy_c_str.indexOf("px");
                var px_int = xy_c_str.substring(0, px_sy);
                px_int = parseInt(px_int);
                if (px_int >= (-((num - 1) * 300)) && px_int < 0) {
                    document.getElementById("xy_c_" + id).style.left = px_int + 300 + "px";
                }
            }
            function modify_auction(auction_id, zc_id) {
                window.location.href = "index.php?act=publish&op=step1&auction_id=" + auction_id + "&zc_id=" + zc_id;
            }
            function del_auction(auction_id) {
                window.location.href = "index.php?act=renzheng&op=del_auction&auction_id=" + auction_id;
            }            </script>
        <table style="width:100%;">            <?php if (empty($output["list"])) { ?>
                <tr>
                    <td colspan="4" style="text-align:center;">暂无数据！！！</td>
                </tr>                <?php } ?>                                    <?php foreach ($output["list"] as $val) { ?>
                <tr style="text-align:left;clear:both;">
                    <td style='border:5px solid green;'> 拍品id：<?php echo $val["id"] ?><br/>
                        拍品开拍时间：<?php echo date('Y-m-d H:i', $val["add_time"]); ?><br/>
                        拍品截拍时间：<?php echo date('Y-m-d H:i', $val["end_time"]); ?><br/>
                        所属专场：<?php echo $val["zc_name"] ?><br/> 拍品简介：
                        <p><?php echo $val["auction_description"] ?></p></br>                                拍品图片：
                        <div style="clear:both;"><?php if (count($val['imgs']) > 1) {
                                echo "<div style='width:300px;height:auto;margin:0 auto;'>";
                                echo '<div id="xy_left" style="float:left;width:70px;" onclick="xyright(' . $val["id"] . ',' . count($val['imgs']) . ');">左按钮</div>';
                                echo '<div id="xy_left" style="float:right;width:70px;text-align:right;" onclick="xyleft(' . $val["id"] . ',' . count($val['imgs']) . ');">右按钮</div>';
                                echo "</div>";
                            } ?>
                            <div style="width:300px;height:auto;overflow:hidden;margin:0 auto;">
                                <div
                                    style="width:<?php echo count($val['imgs']) * 300; ?>px;height:auto;position:relative;left:0px;top:0px;"
                                    id="xy_c_<?php echo $val['id']; ?>">                  <?php foreach ($val['imgs'] as $k => $v) { ?>
                                        <img
                                            src="<?php echo "/bearshop/data/upload/shop/auction/" . $val['auction_add_date'] . "/" . $val['imgs'][$k]['auction_img'] ?>"
                                            style="width:300px;height:auto;border：0px;padding:0px;margin:0px;float:left;position:relative;left:0px;top:0px;"/>                     <?php } ?>
                                </div>
                            </div>
                        </div>
                        拍品视频: <?php if ($val["auction_video"] == "") {
                            echo "暂无视频";
                        } else { ?>
                            <div
                                style="clear:both;width:300px;border:1px solid red;height:150px;line-height:150px;margin:0 auto;text-align:center;">
                                <video src="<?php echo $val["auction_video"]; ?>"
                                       style="display:block;width:100%;height:150px;" controls> 您的浏览器不支持video标签
                                </video>
                            </div>                  <?php } ?> 审核状态： <?php if ($val['zc_sh'] == 0) {
                            echo "待审核";
                        } elseif ($val['zc_sh'] == 1) {
                            echo "被驳回"; ?>                    <br/>                    驳回理由：
                            <p><?php echo $val['zc_bohui_liyou']; ?></p>                    <input type="button"
                                                                                                   value="修改拍品"
                                                                                                   onclick="modify_auction(<?php echo $val['id']; ?>,<?php echo $val['Relation_zc_id']; ?>);"
                                                                                                   style="width:100%;height:30px;background:pink;">
                            <br/>                    <input type="button" value="删除拍品"
                                                            onclick="del_auction(<?php echo $val['id']; ?>);"
                                                            style="width:100%;height:30px;background:red;">                    <?php } else {
                            echo "审核成功";
                        } ?>                </td>
                </tr>                                            <?php } ?>                                    </table>
        <style>        #fenye {
                float: right;
            }

            #fenye li {
                float: left;
                margin-right: 5px !important;
                width: 36px;
                height: 40px;
                line-height: 40px;
                background: green;
                text-align: center;
            }

            #fenye li span {
                width: 100% !important;
                display: block !important;
            }        </style>
        <div style="margin-top:30px;">                    <?php echo $output['show_page']; ?></div>
    </div>
    </div>
</div>

    <style type="text/css">
        * {
            outline: none;
            -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
            vertical-align: baseline;
            font-style: normal;
        }

        body {
            margin: 0;
            padding: 0;
            font-size: 12px;
            font-family: Microsoft Yahei, Arial, Simsun, Helvetica, Segoe UI, sans-serif;
            color: #404040;
            background-color: #efeff4;
        }

        img {
            border: 0
        }

        ul, ol, li, dt, dl, dd {
            text-decoration: none;
            list-style: none;
            vertical-align: middle;
            margin: 0;
            padding: 0;
        }

        a,
        a:visited {
            color: #373737;
            text-decoration: none;
        }

        .blank {
            width: 100%;
            height: 20px;
        }
        .blank {
            width: 100%;
            height: 20px;
        }

        .userinfoMain {
            width: 100%;
            background-color: #FFF;
            display: table;
        }

        .userinfoMain .userinfoItem {
            width: 96%;
            margin-left: 4%;
            height: 50px;
            line-height: 50px;
        }

        .userinfoMain .userinfoItem span {
            float: left;
            display: block;
            width: 80px;
            height: 50px;
            line-height: 50px;
            text-align: left;
            font-size: 14px;
        }

        .userinfoMain .userinfoItem {
            border-bottom: 1px solid #dbdbdb;
        }

        .userinfoMain .userinfoItem:last-child {
            border-bottom: none;
        }
        button {
            width: 94%;
            margin: 0 3%;
            border: none;
            background: #08BA06;
            border-radius: 4px;
            height: 40px;
            line-height: 40px;
            font-size: 18px;
            color: #FFF;
            margin-top: 40px;
            outline: none
        }
    </style>




<?php include template('home/nav');?>
</body>
</html>